<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>写博客</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/start.css">
    <link rel="stylesheet" href="../css/write.css">
    <!-- 引入 editor.md 的依赖 -->
    <link rel="stylesheet" href="editor.md/css/editormd.min.css" />
    <script src="js/jquery.min.js"></script>
    <script src="editor.md/lib/marked.min.js"></script>
    <script src="editor.md/lib/prettify.min.js"></script>
    <script src="editor.md/editormd.js"></script>
</head>
<body>
    <div class="nav">
        <img src="../img/logo.png" alt="">
        <span class="title">TQ02博客系统</span>
        <span class="spacer"></span>
        <a href="write.html">写博客</a>
        <a href="../logout">退出</a>
        <a href="login.html">销户</a>
    </div>

    <div class="blog-edit-container">
        <div class="container">
            <form method="post" action="../blog">
                <div class="title">
                    <input type="text" placeholder="文章标题" name="title" id="title-input">
                    <button id="submit">发布文章</button>
                </div>
                <!-- 创建编辑器标签 -->
                <div id="editor">
                    <textarea name="content" style="display: none;"></textarea>
                </div>
            </form>
        </div>
    </div>
  
</body>
    <script src="js/app.js"></script>
    <script>
            let edit=editormd('editor',{
                width:"100%",
                height:"calc(100%-50%)",
                path:"./editor.md/lib/"
            })
            checkLogin();
    </script> 
</html>